package util;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author wuguojian
 * @description
 * @date 2022/7/5 下午5:37
 **/
public class ThreadUtil {

    public static void sleep(long millis){
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void print(String message){
        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
        System.out.println(LocalDateTime.now() + " --  threadId：" + Thread.currentThread().getId() + "," + Thread.currentThread().getName() + " : " + message );
    }
}
